package com.smartleanx.module.hrm.controller.admin.employee.work;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.*;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 员工工作经历新增/修改 Request VO")
@Data
public class EmployeeWorkExperienceSaveReqVO {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long id;

    @Schema(description = "员工id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long employeeId;

    @Schema(description = "工作单位", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "工作单位不能为空")
    private String workUnit;

    @Schema(description = "职务", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "职务不能为空")
    private String post;

    @Schema(description = "工作开始时间")
    private LocalDateTime workStartTime;

    @Schema(description = "工作结束时间")
    private LocalDateTime workEndTime;

    @Schema(description = "离职原因")
    private String leavingReason;

    @Schema(description = "证明人")
    private String witness;

    @Schema(description = "证明人手机号")
    private String witnessPhone;

    @Schema(description = "工作备注")
    private String workRemarks;

}
